package JAVA;

public class work383 {
    public static void main(String[] args) {
        int count=0;
        for (int a=1;a<501;a++){
            int line=(count+1)%5;
            if (a%2==0&&a%5==0&&a%7==0){
                count++;
                System.out.println(a+" ");
                switch (line){
                    case 0:
                        System.out.println(" ");
                        break;
                    default:
                }
            }
        }
        System.out.println("符合条件共有"+count+"个");
    }
}
